home *** CD-ROM | disk | FTP | other *** search
-
-
-
- hhhhwwwwggggrrrraaaapppphhhh....iiiinnnnvvvv((((DDDD3333XXXX)))) hhhhwwwwggggrrrraaaapppphhhh....iiiinnnnvvvv((((DDDD3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _hhhh_wwww_gggg_rrrr_aaaa_pppp_hhhh_...._iiii_nnnn_vvvv_:::: device_inventory_add, device_inventory_get_next,
- device_controller_num_get, device_controller_num_set - device inventory
- information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////hhhhwwwwggggrrrraaaapppphhhh....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ddddddddiiii....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////iiiinnnnvvvveeeennnntttt....hhhh>>>>
-
- vvvvooooiiiidddd
- ddddeeeevvvviiiicccceeee____iiiinnnnvvvveeeennnnttttoooorrrryyyy____aaaadddddddd((((ddddeeeevvvv____tttt _d_e_v_i_c_e,,,,
- iiiinnnntttt _c_l_a_s_s,,,,
- iiiinnnntttt _t_y_p_e,,,,
- mmmmaaaajjjjoooorrrr____tttt _c_t_l_r,,,,
- mmmmiiiinnnnoooorrrr____tttt _u_n_i_t,,,,
- iiiinnnntttt _s_t_a_t_e))));;;;
-
- iiiinnnnvvvveeeennnnttttoooorrrryyyy____tttt ****
- ddddeeeevvvviiiicccceeee____iiiinnnnvvvveeeennnnttttoooorrrryyyy____ggggeeeetttt____nnnneeeexxxxtttt((((ddddeeeevvvv____tttt _d_e_v_i_c_e,,,, iiiinnnnvvvvppppllllaaaacccceeee____tttt **** _p_l_a_c_e))));;;;
-
- vvvvooooiiiidddd
- ddddeeeevvvviiiicccceeee____ccccoooonnnnttttrrrroooolllllllleeeerrrr____nnnnuuuummmm____sssseeeetttt((((ddddeeeevvvv____tttt _d_e_v_i_c_e,,,, iiiinnnntttt _c_t_l_r))));;;;
-
- iiiinnnntttt
- ddddeeeevvvviiiicccceeee____ccccoooonnnnttttrrrroooolllllllleeeerrrr____nnnnuuuummmm____ggggeeeetttt((((ddddeeeevvvv____tttt _d_e_v_i_c_e))));;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _c_l_a_s_s Inventory class to assign, from sys/invent.h.
-
- _c_t_l_r Controller sequence number to assign.
-
- _d_e_v_i_c_e Vertex handle of a device vertex.
-
- _p_l_a_c_e Address of a variable to hold the current position in a scan
- of inventory records.
-
- _s_t_a_t_e Arbitrary device state to assign.
-
- _t_y_p_e Inventory device type to assign, from sys/invent.h.
-
- _u_n_i_t Device unit number to assign.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These functions manage the hardware inventory information. In previous
- releases of IRIX, the hardware inventory as reported by _h_i_n_v(1) and
- _g_e_t_i_n_v_e_n_t(3) was maintained as a table in kernel memory. Now the same
- information is distributed throughout the hwgraph. After creating a
- device vertex as described in _h_w_g_r_a_p_h._d_e_v(D3X), the driver can attach
- inventory information to the new vertex using _d_e_v_i_c_e__i_n_v_e_n_t_o_r_y__a_d_d().
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- hhhhwwwwggggrrrraaaapppphhhh....iiiinnnnvvvv((((DDDD3333XXXX)))) hhhhwwwwggggrrrraaaapppphhhh....iiiinnnnvvvv((((DDDD3333XXXX))))
-
-
-
- Normally only a single inventory record is attached to a vertex, but
- multiple records are supported. To read the first or all inventory
- records call _d_e_v_i_c_e__i_n_v_e_n_t_o_r_y__g_e_t__n_e_x_t(). Initially the variable
- addressed by _p_l_a_c_e should contain NULL to indicate "first." The first
- inventory record is returned (if any exist), and the position is noted.
- Subsequent calls return further records if they exist.
-
- To read out the controller number from the first or only inventory
- record, call _d_e_v_i_c_e__c_o_n_t_r_o_l_l_e_r__n_u_m__g_e_t(). This is the means of
- discovering the controller number assigned by the _i_o_c_o_n_f_i_g(1) program.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _d_e_v_i_c_e__i_n_v_e_n_t_o_r_y__g_e_t__n_e_x_t() returns NULL when no (further) inventory
- record exists.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hinv(1), ioconfig(1), getinvent(3), hwgraph.dev(D3X), hwgraph.intro(D4X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-